package eu.scillman.net;

/**
 * Describes a network engine. Object using this interface <b>must</b> run in their own thread!
 * @author Jiri Waning
 */
public interface INetEngine extends Runnable {

	/**
	 * Abort the networking thread.
	 */
	public void abort();
	
	/**
	 * Hold till the thread has aborted properly or till the time passed by!
	 * @return {@code true} when the engine aborted properly; {@code false} otherwise.
	 */
	public boolean hold();

}
